import Mock from 'mockjs';

let item = [{
		key: "/client/yj/page",
		method: "get",
		param: {},
		data: () => {
			return Mock.mock({
				'STATUS': "SUCCESS",
				'DATA': {
					'current': 0,
					'size': 10,
					'pages': 6,
					'total': 55,
					"records|10": [{
						"clientid|4": /[A-Z][a-z][0-9][0-9][0-9][0-9][0-9][0-9]/,
						"nickname": "@cword(6,9)",
						"openid|4": /[A-Z][a-z][0-9][0-9][0-9][0-9][0-9][0-9]/,
						'tel|11': /[0-9]/,
						"count": "@integer(10,99)",
					}]
				}
			});
		}
	},
	{
		key: "/client/yj/info",
		method: "get",
		prarm: {},
		data: () => {
			return Mock.mock({
				'STATUS': "SUCCESS",
				'DATA': {
					client: {
						"clientid|4": /[A-Z][a-z][0-9][0-9][0-9][0-9][0-9][0-9]/,
						"nickname": "@cword(6,9)",
						"openid|4": /[A-Z][a-z][0-9][0-9][0-9][0-9][0-9][0-9]/,
						"sex|1": ["1", "2"],
						"age": "@integer(10,99)",
						"headimg": "@image('200x200')",
						"from|4": /[A-Z][a-z][0-9][0-9][0-9][0-9][0-9][0-9]/,
						'tel|11': /[0-9]/,
					},
					"tjClients|2-76": [{
						"clientid|4": /[A-Z][a-z][0-9][0-9][0-9][0-9][0-9][0-9]/,
						"nickname": "@cword(6,9)",
						"openid|4": /[A-Z][a-z][0-9][0-9][0-9][0-9][0-9][0-9]/,
						"sex|1": ["1", "2"],
						"age": "@integer(10,99)",
						"headimg": "@image('200x200')",
						"from|4": /[A-Z][a-z][0-9][0-9][0-9][0-9][0-9][0-9]/,
						'tel|11': /[0-9]/,
					}]
				}
			})
		}
	},

	{
		key: "/client/info",
		method: "post",
		param: {},
		data: () => {
			return Mock.mock({
				'STATUS': "SUCCESS",
				'DATA': {

				}
			})
		}
	},
	{
		key: "/client/info",
		method: "put",
		param: {},
		data: () => {
			return Mock.mock({
				'STATUS': "SUCCESS",
				'DATA': {

				}
			})
		}
	},
	{
		key: "/client/info",
		method: "delete",
		param: {
			empId: '',
		},
		data: () => {
			return Mock.mock({
				'STATUS': "SUCCESS",
				'DATA': {

				}
			})
		}
	},

]
export default item;